package chixing.day20.class23;

public class Test {
    public static void main(String[] args) {
//     MyProxy myProxy = new MyProxy(new ProductServiceImpl());
//     ProductService productService = (ProductService) myProxy.creativeProxy();
//     productService.add(new Product());
        MyCglibProxy myCglibProxy = new MyCglibProxy(new ProductServiceImpl());
        ProductService productService = (ProductService) myCglibProxy.getProxyInstance();
        productService.add(new Product());
    }
}
